﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectDriver.aspx.cs" Inherits="Webcar.Driver.SelectDriver" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>选择驾驶员</title>
    <base target="_self"/>
</head>
<body> 
    <form id="form1" runat="server">
    <div id = "SelectDriver" class="div_blue">
        <table>
        <tr>
        <td>请输入驾驶员姓名：</td>
        <td><asp:TextBox ID="TextBox1" runat="server" Width="74px"></asp:TextBox></td>
        <td><asp:Button ID="btnSearch" runat="server" Text="查询" Width="74px" SkinID="default_button"  OnClick="btnSearch_Click" /></td>
        </tr>
        </table>
        <asp:GridView ID="GridView1" runat="server" Width="100%" SkinID="gridviewSkin" AutoGenerateColumns="False" DataKeyNames="man_code" OnRowCommand="GridView1_RowCommand">
            
            <Columns>
                <asp:BoundField DataField="dept_name" HeaderText="所属单位">
                </asp:BoundField>
                <asp:BoundField DataField="man_name" HeaderText="姓名" />
                <asp:BoundField DataField="user_zt" HeaderText="状态" />
                <asp:TemplateField ShowHeader="False">
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select"
                         CommandArgument='<%# Bind("man_code") %>'
                            Text="选择"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <div class="C3"><asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="退出" SkinID="default_button" Width="59px" /></div>
    </div>
    
    </form>
</body>
</html>
